/*
 * @Author: AiLjx
 * @Date: 2023-06-02 08:13:47
 * @LastEditors: AiLjx
 * @LastEditTime: 2023-06-02 13:12:40
 */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.title {
  text-align: center;
  margin: 10px 0;
}

.gobang-container {
  width: 600px;
  height: 600px;
  background-color: #f7e6b7;
  margin: 30px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gobang-table {
  width: 90%;
  height: 90%;
  border: 1px solid #333;
  border-collapse: collapse;
  cursor: pointer;
}
.gobang-table td {
  position: relative;
  border: 1px solid #333;
}

.gobang-table td .piece {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  /* 棋子默认在网格的左上角 */
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border: 1px solid lightgrey;
  display: flex;
  justify-content: center;
  align-items: center;
  color: red;
  font-size: 16px;
}
.gobang-table td .piece.black {
  background-color: black;
}
.gobang-table td .piece.white {
  background-color: white;
}
.gobang-table td .piece.winner {
  box-shadow: 0 0 7px 0px red;
}
